package com.zwb.demo.easyweb.modules.menu;

import com.zwb.demo.easyweb.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
/**
* 系统菜单表
*
* @author zwb
* @date 2020-04-30T11:20:54.324554900
*/
@Entity
@Table(name = "t_sys_menu")
@Data
@EqualsAndHashCode(callSuper = true)
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
public class  SysMenuPO extends BaseEntity implements Serializable {
private static final long serialVersionUID = 1L;


    /**
     * id
     */
    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(name = "id", insertable = false, nullable = false, length = 32)
    private String id;
    /**
     * 菜单名称
     */
    @Column(name = "label", nullable = false)
    private String label;
    /**
     * 路径
     */
    @Column(name = "path", nullable = true)
    private String path;
    /**
     * 父id
     */
    @Column(name = "parent_id", nullable = true)
    private String parentId;
    /**
     * 图标
     */
    @Column(name = "icon", nullable = true)
    private String icon;
    /**
     * 是否父节点
     */
    @Column(name = "is_parent", nullable = true)
    private Boolean isParent = Boolean.FALSE;
    /**
     * 是否根节点
     */
    @Column(name = "is_root", nullable = true)
    private Boolean isRoot;

}